package com.smile.frame.seckill.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName second_kill
 */
@TableName(value ="second_kill")
@Data
public class SecondKill {
    /**
     * 秒杀id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 秒杀名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 库存
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 版本
     */
    @TableField(value = "version")
    private Integer version;
}